package com.mach.platform.repository;


import com.mach.platform.domain.AlarmMessage;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

@Repository
public interface AlarmMessageRepo extends BaseRepository<AlarmMessage> {

    @Modifying
    @Transactional
    @Query(value = "update alarm_message set deal_people = ?2, deal_result = ?3, is_operation = 1 where id = ?1", nativeQuery = true)
    int update(Long id, String dealPeople, String dealResult);
}
